<template>
  <div class="cover">
    <img :src="proxy.globalInfo.imageUrl+cover" v-if="cover">
    <img v-else src="../assets/海山了.jpg" >
  </div>
</template>

<script setup>
import { getCurrentInstance } from 'vue';

const props = defineProps({
  cover:{
    type:String,
  }
})
const { proxy } = getCurrentInstance()


</script>

<style lang="scss">
.cover{
background: #ddd;
display: flex;
align-items: center;
justify-content: center;
width: 60px;
height:60px;
img{
  width: 100%;
  height: 100%;
}
}
</style>
